package com.fly.mskillclient;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
// springboot
@SpringBootApplication
@RestController
// eureka
@EnableEurekaClient
@EnableDiscoveryClient
public class MSkillClientApplication {

	public static void main(String[] args) {
		SpringApplication.run(MSkillClientApplication.class, args);
	}

	@GetMapping("/test")
	public String test() {
		System.err.println("skill2");
		return "skill2";
	}
}
